mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 07:54:41 +01:00
Added TypeCheckTypeExp() and changed function type literal and similar type-checking logic to use the new function (#1256)
This commit is contained in:
@@ -10,11 +10,8 @@
|
||||
|
||||
package ExplorerTest api;
|
||||
|
||||
interface Vector(Scalar:! Type) {
|
||||
}
|
||||
|
||||
// CHECK: COMPILATION ERROR: {{.*}}/explorer/testdata/impl/fail_impl_as_parameterized.carbon:[[@LINE+1]]: expected constraint after `as`, found value of type Vector
|
||||
external impl i32 as Vector {}
|
||||
// CHECK: COMPILATION ERROR: {{.*}}/explorer/testdata/impl/fail_impl_as_parameterized.carbon:[[@LINE+1]]: expected constraint after `as`, found value of type String
|
||||
external impl i32 as String {}
|
||||
|
||||
fn Main() -> i32 {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user