diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-04-01 14:51:20 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-04-01 14:51:20 +0300 |
| commit | 4642bedb436981e92e3312f06bfcb2eb34074596 (patch) | |
| tree | cc5bf868a391c9880b9917eed44b20e4df535d1d /tests | |
| parent | 0132be5b71f3fe161b2fcda201c945d30bd8d1a5 (diff) | |
| download | ek-4642bedb436981e92e3312f06bfcb2eb34074596.tar.gz ek-4642bedb436981e92e3312f06bfcb2eb34074596.zip | |
disallow certain kinds of types in templates
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/resolve.cu | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/resolve.cu b/tests/resolve.cu index aee8bc4..1be0916 100644 --- a/tests/resolve.cu +++ b/tests/resolve.cu @@ -23,13 +23,13 @@ struct other_generic(T1 A) { // TODO: traits shouldn't be allowed in template instantiation //some_func(a generic(A, A)){6;} //some_func(generic(generic, generic)){1;} -some_func(generic(generic, i64)){2;} -some_func(generic(i64, generic)){3;} +//some_func(generic(generic, i64)){2;} +//some_func(generic(i64, generic)){3;} //some_func(generic(i64, i64)){4;} some_func(generic){5;} main(){ // TODO: not fully qualified types in bodies should cause an error - a generic(i64, u32); + a generic(i64, generic); some_func(a); } |
