File tree 1 file changed +8
-4
lines changed
compiler/src/dotty/tools/dotc/core
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -338,9 +338,13 @@ final class ProperGadtConstraint private(
338
338
val pathType = path.widen
339
339
val typeMembers = constrainableTypeMembers(path).filterNot(_.symbol eq NoSymbol )
340
340
341
- gadts.println(i " > trying to add $path into constraint ... " )
342
- gadts.println(i " path.widen = $pathType" )
343
- gadts.println(i " type members = \n ${debugShowTypeMembers(typeMembers)}" )
341
+ gadts.println {
342
+ val sb = new mutable.StringBuilder ()
343
+ sb ++= i " * trying to add $path into constraint ... \n "
344
+ sb ++= i " ** path.widen = $pathType\n "
345
+ sb ++= i " ** type members = \n ${debugShowTypeMembers(typeMembers)}\n "
346
+ sb.result()
347
+ }
344
348
345
349
typeMembers.nonEmpty && {
346
350
val typeMemberSymbols : List [Symbol ] = typeMembers map { x => x.symbol }
@@ -411,7 +415,7 @@ final class ProperGadtConstraint private(
411
415
}
412
416
413
417
addToConstraint(poly1, tvars)
414
- .showing(i " added to constraint: [ $poly1] $path\n $debugBoundsDescription" , gadts)
418
+ .showing(i " added to constraint: [ $poly1] $path, result = $result \n $debugBoundsDescription" , gadts)
415
419
}
416
420
}
417
421
You can’t perform that action at this time.
0 commit comments