File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
compiler/src/dotty/tools/dotc/transform/init Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -673,6 +673,8 @@ object Semantic:
673
673
if obj.hasField(target) then
674
674
obj.field(target)
675
675
else if ref.isInstanceOf [Warm ] then
676
+ if ! target.exists then
677
+ println(" obj.klass = " + obj.klass.show + " , field = " + field.show)
676
678
assert(obj.klass.isSubClass(target.owner))
677
679
if target.is(Flags .ParamAccessor ) then
678
680
// possible for trait parameters
@@ -1231,7 +1233,7 @@ object Semantic:
1231
1233
/** Utility definition used for better error-reporting of argument errors */
1232
1234
case class ArgInfo (value : Value , trace : Trace ):
1233
1235
def promote : Contextual [Unit ] = withTrace(trace) {
1234
- value.promote(" Cannot prove the argument is fully initialized. Only fully initialized values are safe to leak.\n Found = " + value.show + " . " )
1236
+ value.promote(" Cannot prove the method argument is fully initialized. Only fully initialized values are safe to leak.\n Found = " + value.show + " . " )
1235
1237
}
1236
1238
1237
1239
/** Evaluate an expression with the given value for `this` in a given class `klass`
You can’t perform that action at this time.
0 commit comments