Skip to content

Commit c99ccbf

Browse files
committed
format comment
1 parent 20d2f89 commit c99ccbf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler/src/dotty/tools/dotc/transform/TypeTestsCasts.scala

+3-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ object TypeTestsCasts {
8888
withMode(Mode.GadtConstraintInference) {
8989
// Why not widen type arguments here? Given the following program
9090
//
91-
// trait Tree[-T] class Ident[-T] extends Tree[T] def foo1(tree:
92-
// Tree[Int]) = tree.isInstanceOf[Ident[Int]]
91+
// trait Tree[-T] class Ident[-T] extends Tree[T]
92+
//
93+
// def foo1(tree: Tree[Int]) = tree.isInstanceOf[Ident[Int]]
9394
//
9495
// In checking whether the test tree.isInstanceOf[Ident[Int]]
9596
// is realizable, we want to constrain Ident[X] <: Tree[Int],

0 commit comments

Comments
 (0)