File tree Expand file tree Collapse file tree 3 files changed +50
-0
lines changed Expand file tree Collapse file tree 3 files changed +50
-0
lines changed Original file line number Diff line number Diff line change @@ -7756,6 +7756,14 @@ export class Compiler extends DiagnosticEmitter {
7756
7756
uniqueMap < string , Type > ( flow . contextualTypeArguments )
7757
7757
) ;
7758
7758
if ( ! functionInstance || ! this . compileFunction ( functionInstance ) ) return module . unreachable ( ) ;
7759
+ if ( functionInstance . hasDecorator ( DecoratorFlags . BUILTIN ) ) {
7760
+ this . error (
7761
+ DiagnosticCode . Not_implemented_0 ,
7762
+ expression . range , "First-class built-ins"
7763
+ ) ;
7764
+ this . currentType = functionInstance . type ;
7765
+ return module . unreachable ( ) ;
7766
+ }
7759
7767
if ( contextualType . isExternalReference ) {
7760
7768
this . currentType = Type . funcref ;
7761
7769
return module . ref_func ( functionInstance . internalName , TypeRef . Funcref ) ; // TODO
Original file line number Diff line number Diff line change
1
+ {
2
+ "asc_flags" : [
3
+ ],
4
+ "stderr" : [
5
+ " AS100: Not implemented: First-class built-ins" ,
6
+ " AS100: Not implemented: First-class built-ins" ,
7
+ " AS100: Not implemented: First-class built-ins" ,
8
+ " AS100: Not implemented: First-class built-ins" ,
9
+ " AS100: Not implemented: First-class built-ins" ,
10
+ " AS100: Not implemented: First-class built-ins" ,
11
+ " AS100: Not implemented: First-class built-ins" ,
12
+ " AS100: Not implemented: First-class built-ins" ,
13
+ " AS100: Not implemented: First-class built-ins" ,
14
+ " AS100: Not implemented: First-class built-ins" ,
15
+ " AS100: Not implemented: First-class built-ins" ,
16
+ " AS100: Not implemented: First-class built-ins" ,
17
+ " AS100: Not implemented: First-class built-ins" ,
18
+ " AS100: Not implemented: First-class built-ins" ,
19
+ " AS100: Not implemented: First-class built-ins" ,
20
+ " AS100: Not implemented: First-class built-ins" ,
21
+ " AS100: Not implemented: First-class built-ins" ,
22
+ " EOF"
23
+ ]
24
+ }
Original file line number Diff line number Diff line change
1
+ i16 ;
2
+ i32 ;
3
+ i64 ;
4
+ u8 ;
5
+ u16 ;
6
+ u32 ;
7
+ u64 ;
8
+ bool ;
9
+ f32 ;
10
+ f64 ;
11
+ v128 ;
12
+ i8x16 ;
13
+ i16x8 ;
14
+ i32x4 ;
15
+ i64x2 ;
16
+ f32x4 ;
17
+ f64x2 ;
18
+ ERROR ( "EOF" ) ;
You can’t perform that action at this time.
0 commit comments