We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20d2f89 commit c99ccbfCopy full SHA for c99ccbf
compiler/src/dotty/tools/dotc/transform/TypeTestsCasts.scala
@@ -88,8 +88,9 @@ object TypeTestsCasts {
88
withMode(Mode.GadtConstraintInference) {
89
// Why not widen type arguments here? Given the following program
90
//
91
- // trait Tree[-T] class Ident[-T] extends Tree[T] def foo1(tree:
92
- // Tree[Int]) = tree.isInstanceOf[Ident[Int]]
+ // trait Tree[-T] class Ident[-T] extends Tree[T]
+ //
93
+ // def foo1(tree: Tree[Int]) = tree.isInstanceOf[Ident[Int]]
94
95
// In checking whether the test tree.isInstanceOf[Ident[Int]]
96
// is realizable, we want to constrain Ident[X] <: Tree[Int],
0 commit comments