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