We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c8e206 commit 1c06afdCopy full SHA for 1c06afd
src/compiler/parser-decl-var.bas
@@ -65,6 +65,15 @@ sub hSymbolType _
65
lgt = typeGetSize( dtype )
66
end if
67
68
+ '' ANY alias "modifier" but no pointer level?
69
+ if( typeHasMangleDt( dtype ) and (typeGetDtAndPtrOnly( dtype ) = FB_DATATYPE_VOID) ) then
70
+ errReport( FB_ERRMSG_INVALIDDATATYPES )
71
+ '' error recovery: fake a type
72
+ dtype = typeAddrOf( dtype )
73
+ subtype = NULL
74
+ lgt = typeGetSize( dtype )
75
+ end if
76
+
77
end sub
78
79
function hCheckScope() as integer
tests/dim/dim-bad-datatype-1.bas
@@ -0,0 +1,3 @@
1
+' TEST_MODE : COMPILE_ONLY_FAIL
2
3
+dim x as any alias "char"
0 commit comments