File tree 3 files changed +30
-0
lines changed
tests/build_tests/not_undefined_attribute
3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ // @ts -check
2
+
3
+ import * as assert from "node:assert" ;
4
+ import { setup } from "#dev/process" ;
5
+ import { normalizeNewlines } from "#dev/utils" ;
6
+
7
+ const { execBuild } = setup ( import . meta. dirname ) ;
8
+
9
+ const out = await execBuild ( ) ;
10
+
11
+ assert . equal (
12
+ normalizeNewlines ( out . stdout . slice ( out . stdout . indexOf ( "input.res:2:1-12" ) ) ) ,
13
+ `input.res:2:1-12
14
+
15
+ 1 │ @notUndefined
16
+ 2 │ type t = int
17
+ 3 │
18
+
19
+ @notUndefined can only be used on abstract types
20
+
21
+ FAILED: cannot make progress due to previous errors.
22
+ ` ,
23
+ ) ;
Original file line number Diff line number Diff line change
1
+ @notUndefined
2
+ type t = int
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " not_undefined_attribute" ,
3
+ "version" : " 0.1.0" ,
4
+ "sources" : [" ." ]
5
+ }
You can’t perform that action at this time.
0 commit comments