diff options
author | Paul Phillips <paulp@improving.org> | 2009-07-20 21:38:13 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-07-20 21:38:13 +0000 |
commit | 04ed00053ec03848f3409e090d818418c19a8541 (patch) | |
tree | 7123e1cab2042b306a81d83c7a97ea8e6e884503 /src/compiler/scala/tools/nsc/ast/TreeDSL.scala | |
parent | 9fcf6dc3c6b32e03c64d340e285e1d7886593d20 (diff) | |
download | scala-04ed00053ec03848f3409e090d818418c19a8541.tar.gz scala-04ed00053ec03848f3409e090d818418c19a8541.tar.bz2 scala-04ed00053ec03848f3409e090d818418c19a8541.zip |
Fix and test case for #2168.
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/TreeDSL.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/TreeDSL.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/TreeDSL.scala b/src/compiler/scala/tools/nsc/ast/TreeDSL.scala index 9c12ac6bd5..97869d5ea5 100644 --- a/src/compiler/scala/tools/nsc/ast/TreeDSL.scala +++ b/src/compiler/scala/tools/nsc/ast/TreeDSL.scala @@ -114,6 +114,8 @@ trait TreeDSL { /** Casting & type tests -- working our way toward understanding exactly * what differs between the different forms of IS and AS. + * + * See ticket #2168 for one illustration of AS vs. AS_ANY. */ def AS(tpe: Type) = TypeApply(Select(target, Any_asInstanceOf), List(TypeTree(tpe))) def AS_ANY(tpe: Type) = gen.mkAsInstanceOf(target, tpe) |