File tree Expand file tree Collapse file tree 4 files changed +24
-12
lines changed
src/dotty/tools/dotc/transform Expand file tree Collapse file tree 4 files changed +24
-12
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ object Erasure extends TypeTestsCasts{
119
119
object Boxing {
120
120
121
121
def isUnbox (sym : Symbol )(implicit ctx : Context ) =
122
- sym.name == nme.unbox && (defn.ScalaBoxedClasses contains sym.owner.linkedClass)
122
+ sym.name == nme.unbox && (defn.ScalaValueClasses contains sym.owner.linkedClass)
123
123
124
124
def isBox (sym : Symbol )(implicit ctx : Context ) =
125
125
sym.name == nme.box && (defn.ScalaValueClasses contains sym.owner.linkedClass)
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ object Test {
2
+ def main (args : Array [String ]): Unit = {
3
+ val u = null .asInstanceOf [Unit ]
4
+ val b = null .asInstanceOf [Byte ]
5
+ val c = null .asInstanceOf [Char ]
6
+ val s = null .asInstanceOf [Short ]
7
+ val i = null .asInstanceOf [Int ]
8
+ val l = null .asInstanceOf [Long ]
9
+ val f = null .asInstanceOf [Float ]
10
+ val d = null .asInstanceOf [Double ]
11
+ val str = null .asInstanceOf [String ]
12
+
13
+ println(u)
14
+ println(b)
15
+ println(c)
16
+ println(s)
17
+ println(i)
18
+ println(l)
19
+ println(f)
20
+ println(d)
21
+ println(str)
22
+ }
23
+ }
You can’t perform that action at this time.
0 commit comments