@@ -42,46 +42,46 @@ not / foo(true)
42
42
not / foo(1 )
43
43
foo(1 ) as Nothing
44
44
//│ ╔══[ERROR] Type mismatch in application:
45
- //│ ║ l.39 : not / foo(1 )
45
+ //│ ║ l.42 : not / foo(1 )
46
46
//│ ║ ^^^^^^^^^^^^
47
47
//│ ╟── application of type `int` is not an instance of type `bool`
48
- //│ ║ l.39 : not / foo(1 )
48
+ //│ ║ l.42 : not / foo(1 )
49
49
//│ ╙── ^^^^^^
50
50
//│ res: bool | error
51
51
//│ ╔══[ERROR] Type mismatch in 'as ' binding:
52
- //│ ║ l.40 : foo(1 ) as Nothing
52
+ //│ ║ l.43 : foo(1 ) as Nothing
53
53
//│ ║ ^^^^^^^^^^^^^^^^^
54
54
//│ ╟── application of type `int` does not match type `nothing`
55
- //│ ║ l.40 : foo(1 ) as Nothing
55
+ //│ ║ l.43 : foo(1 ) as Nothing
56
56
//│ ║ ^^^^^^
57
57
//│ ╟── Note: constraint arises from reference:
58
- //│ ║ l.40 : foo(1 ) as Nothing
58
+ //│ ║ l.43 : foo(1 ) as Nothing
59
59
//│ ╙── ^^^^^^^
60
60
//│ res: nothing
61
61
62
62
:e
63
63
foo as Nothing
64
64
//│ ╔══[ERROR] Type mismatch in 'as ' binding:
65
- //│ ║ l.60 : foo as Nothing
65
+ //│ ║ l.63 : foo as Nothing
66
66
//│ ║ ^^^^^^^^^^^^^^
67
67
//│ ╟── type intersection of type `int -> int & bool -> bool` does not match type `nothing`
68
68
//│ ║ l.26 : let foo = (Int => Int) & (Bool => Bool)
69
69
//│ ║ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
70
70
//│ ╟── but it flows into reference with expected type `nothing`
71
- //│ ║ l.60 : foo as Nothing
71
+ //│ ║ l.63 : foo as Nothing
72
72
//│ ║ ^^^
73
73
//│ ╟── Note: constraint arises from reference:
74
- //│ ║ l.60 : foo as Nothing
74
+ //│ ║ l.63 : foo as Nothing
75
75
//│ ╙── ^^^^^^^
76
76
//│ res: nothing
77
77
78
78
:e
79
79
let oops = (&)
80
80
//│ ╔══[ERROR] Illegal use of reserved operator: &
81
- //│ ║ l.76 : let oops = (&)
81
+ //│ ║ l.79 : let oops = (&)
82
82
//│ ╙── ^^^
83
83
//│ ╔══[ERROR] identifier not found: &
84
- //│ ║ l.76 : let oops = (&)
84
+ //│ ║ l.79 : let oops = (&)
85
85
//│ ╙── ^^^
86
86
//│ oops: error
87
87
0 commit comments