mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Incorrect handling when reporting fn with optional compile time type #2862
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
fn $typeof({})? foo() {} // #error: A function may not return an optional with a compile time type, only macros may do
|
||||
|
||||
fn int main()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user