mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Using an optional type as generic parameter was not properly caught #2799
This commit is contained in:
8
test/test_suite/generic/generic_param_opt.c3
Normal file
8
test/test_suite/generic/generic_param_opt.c3
Normal file
@@ -0,0 +1,8 @@
|
||||
import std;
|
||||
|
||||
alias Aa = List{Path?}; // #error: The generic type can never be an optional, please use only non-optional types
|
||||
|
||||
fn int main()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user