|
|
@@ -13,10 +13,7 @@ package ExplorerTest api;
|
|
|
class Point(T:! Type) {
|
|
|
|
|
|
// Error: wrote `Self(T)` instead of `Self`.
|
|
|
- // CHECK: COMPILATION ERROR: {{.*}}/explorer/testdata/generic_class/fail_self_with_arg.carbon:[[@LINE+4]]: in call, expected a function
|
|
|
- // CHECK: Self(T)
|
|
|
- // CHECK: not an operator of type typeof(class Point(T = T:! Type))
|
|
|
- // CHECK-EMPTY:
|
|
|
+ // CHECK: COMPILATION ERROR: {{.*}}/explorer/testdata/generic_class/fail_self_with_arg.carbon:[[@LINE+1]]: in call `Self(T)`, expected callee to be a function, found `typeof(class Point(T = T:! Type))`
|
|
|
fn Origin(zero: T) -> Self(T) {
|
|
|
return {.x = zero, .y = zero};
|
|
|
}
|