summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/ast/TreeGen.scala
diff options
context:
space:
mode:
authorBurak Emir <emir@epfl.ch>2006-03-14 16:45:11 +0000
committerBurak Emir <emir@epfl.ch>2006-03-14 16:45:11 +0000
commit803caf64eeb63d644a51558298d3c0ac1ee17b42 (patch)
tree00a78ceafbf22b922ef763803adabf46739fd794 /src/compiler/scala/tools/nsc/ast/TreeGen.scala
parent7ede3d70d261e4905523f174d73f25b3b1476082 (diff)
downloadscala-803caf64eeb63d644a51558298d3c0ac1ee17b42.tar.gz
scala-803caf64eeb63d644a51558298d3c0ac1ee17b42.tar.bz2
scala-803caf64eeb63d644a51558298d3c0ac1ee17b42.zip
disabling isInstanceOfErased
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/TreeGen.scala')
-rw-r--r--src/compiler/scala/tools/nsc/ast/TreeGen.scala7
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. */