You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Probably related to https://github.com/lampepfl/dotty/issues/7872
6
+
// flip(0): 1
7
+
// flip(1): 0
7
8
8
-
flip(if???then0else1)
9
-
valn:0|1=if???then0else1
10
-
flip(n)
9
+
//flip(if ??? then 0 else 1)
10
+
//val n: 0 | 1 = if ??? then 0 else 1
11
+
//flip(n)
11
12
12
-
valm: n.typematch { case0=>1case1=>0 } = flip(n)
13
+
//val m: n.type match { case 0 => 1 case 1 => 0 } = flip(n)
13
14
14
15
// The following do not work, see discussion in https://github.com/lampepfl/dotty/pull/7835/files/6e60814e69be5c8d60265d4ce4bc1758863c23d8#r361741296:
0 commit comments