Sema: fix parameter of type 'T' must be comptime error

Closes #12519
Closes #12505
This commit is contained in:
Veikka Tuominen
2022-08-21 18:04:46 +03:00
parent b2f02a820f
commit b55a5007fa
14 changed files with 51 additions and 22 deletions

View File

@@ -147,7 +147,7 @@ test "fn call of struct field" {
return 13;
}
fn callStructField(foo: Foo) i32 {
fn callStructField(comptime foo: Foo) i32 {
return foo.ptr();
}
};