Skip to content

Commit d2b8f2b

Browse files
committed
run tests
1 parent db8379e commit d2b8f2b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

shared/src/test/diff/basics/Intersections.fun

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,46 +42,46 @@ not / foo(true)
4242
not / foo(1)
4343
foo(1) as Nothing
4444
//│ ╔══[ERROR] Type mismatch in application:
45-
//│ ║ l.39: not / foo(1)
45+
//│ ║ l.42: not / foo(1)
4646
//│ ║ ^^^^^^^^^^^^
4747
//│ ╟── application of type `int` is not an instance of type `bool`
48-
//│ ║ l.39: not / foo(1)
48+
//│ ║ l.42: not / foo(1)
4949
//│ ╙── ^^^^^^
5050
//│ res: bool | error
5151
//│ ╔══[ERROR] Type mismatch in 'as' binding:
52-
//│ ║ l.40: foo(1) as Nothing
52+
//│ ║ l.43: foo(1) as Nothing
5353
//│ ║ ^^^^^^^^^^^^^^^^^
5454
//│ ╟── application of type `int` does not match type `nothing`
55-
//│ ║ l.40: foo(1) as Nothing
55+
//│ ║ l.43: foo(1) as Nothing
5656
//│ ║ ^^^^^^
5757
//│ ╟── Note: constraint arises from reference:
58-
//│ ║ l.40: foo(1) as Nothing
58+
//│ ║ l.43: foo(1) as Nothing
5959
//│ ╙── ^^^^^^^
6060
//│ res: nothing
6161

6262
:e
6363
foo as Nothing
6464
//│ ╔══[ERROR] Type mismatch in 'as' binding:
65-
//│ ║ l.60: foo as Nothing
65+
//│ ║ l.63: foo as Nothing
6666
//│ ║ ^^^^^^^^^^^^^^
6767
//│ ╟── type intersection of type `int -> int & bool -> bool` does not match type `nothing`
6868
//│ ║ l.26: let foo = (Int => Int) & (Bool => Bool)
6969
//│ ║ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7070
//│ ╟── but it flows into reference with expected type `nothing`
71-
//│ ║ l.60: foo as Nothing
71+
//│ ║ l.63: foo as Nothing
7272
//│ ║ ^^^
7373
//│ ╟── Note: constraint arises from reference:
74-
//│ ║ l.60: foo as Nothing
74+
//│ ║ l.63: foo as Nothing
7575
//│ ╙── ^^^^^^^
7676
//│ res: nothing
7777

7878
:e
7979
let oops = (&)
8080
//│ ╔══[ERROR] Illegal use of reserved operator: &
81-
//│ ║ l.76: let oops = (&)
81+
//│ ║ l.79: let oops = (&)
8282
//│ ╙── ^^^
8383
//│ ╔══[ERROR] identifier not found: &
84-
//│ ║ l.76: let oops = (&)
84+
//│ ║ l.79: let oops = (&)
8585
//│ ╙── ^^^
8686
//│ oops: error
8787

0 commit comments

Comments
 (0)