File tree 1 file changed +2
-1
lines changed
src/dotty/tools/dotc/transform
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -776,10 +776,11 @@ class PatternMatcher extends MiniPhaseTransform with DenotTransformer {thisTrans
776
776
// is this purely a type test, e.g. no outer check, no equality tests (used in switch emission)
777
777
// def isPureTypeTest = renderCondition(pureTypeTestChecker)
778
778
779
- def impliesBinderNonNull (binder : Symbol ): Boolean =
779
+ def impliesBinderNonNull (binder : Symbol ): Boolean =
780
780
// @odersky: scalac is able to infer in this method that nonNullImpliedByTestChecker.Result,
781
781
// dotty instead infers type projection TreeMakers.this.TypeTestTreeMaker.TypeTestCondStrategy#Result
782
782
// which in turn doesn't typecheck in this method. Can you please explain why?
783
+ // dotty deviation
783
784
renderCondition(nonNullImpliedByTestChecker(binder)).asInstanceOf [Boolean ]
784
785
785
786
override def toString = " TT" + ((expectedTp, testedBinder.name, nextBinderTp))
You can’t perform that action at this time.
0 commit comments