Skip to content

Commit 504068c

Browse files
noti0na1olhotak
andauthored
Update tests/explicit-nulls/pos/union-contains-contextual-function.scala
Co-authored-by: Ondřej Lhoták <[email protected]>
1 parent 604f409 commit 504068c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/explicit-nulls/pos/union-contains-contextual-function.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
class Test:
22
val x: ((a: String) ?=> Int) | Null = null
33

4+
val x2: ((a: String) ?=> Int) | Null = (s: String) ?=> 42
5+
46
val y: ((a: String) ?=> Int) | String = "hello"
57

68
def f(g: ((a: String) ?=> Int) | Null = null) = ???

0 commit comments

Comments
 (0)