diff options
author | Burak Emir <emir@epfl.ch> | 2006-03-14 16:45:11 +0000 |
---|---|---|
committer | Burak Emir <emir@epfl.ch> | 2006-03-14 16:45:11 +0000 |
commit | 803caf64eeb63d644a51558298d3c0ac1ee17b42 (patch) | |
tree | 00a78ceafbf22b922ef763803adabf46739fd794 | |
parent | 7ede3d70d261e4905523f174d73f25b3b1476082 (diff) | |
download | scala-803caf64eeb63d644a51558298d3c0ac1ee17b42.tar.gz scala-803caf64eeb63d644a51558298d3c0ac1ee17b42.tar.bz2 scala-803caf64eeb63d644a51558298d3c0ac1ee17b42.zip |
disabling isInstanceOfErased
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/TreeGen.scala | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/TreeGen.scala b/src/compiler/scala/tools/nsc/ast/TreeGen.scala index 5f4a6ba3cb..b9934346cf 100644 --- a/src/compiler/scala/tools/nsc/ast/TreeGen.scala +++ b/src/compiler/scala/tools/nsc/ast/TreeGen.scala @@ -108,12 +108,15 @@ abstract class TreeGen { } /** Builds an instance test with given value and type. */ - def mkIsInstanceOf(value: Tree, tpe: Type, erased: Boolean): Tree = { + def mkIsInstanceOf(value: Tree, tpe: Type, erased: Boolean): Tree = { // buraq: we ignore erase, no rtt + val sym = definitions.Any_isInstanceOf; + /* val sym = if(erased) definitions.Any_isInstanceOfErased else definitions.Any_isInstanceOf; + */ Apply( TypeApply( Select(value, sym), @@ -122,7 +125,7 @@ abstract class TreeGen { } def mkIsInstanceOf(value: Tree, tpe: Type): Tree = { - mkIsInstanceOf(value, tpe, global.phase.erasedTypes); + mkIsInstanceOf(value, tpe, false/*global.phase.erasedTypes*/); // buraq: ignore which phase it is } /** Builds a cast with given value and type. */ |