You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classReflection(valinternal:CompilerInterface) { self =>// It works if the self is removedopaquetypeFlags= internal.FlagsobjectFlags {
defEmptyFlags:Flags= internal.Flags_EmptyFlags
}
}
traitCompilerInterface {
typeFlagsdefFlags_EmptyFlags:Flags
}
Compilation output
-- [E007] TypeMismatchError:Foo.scala:7:37----------------------------------7|defEmptyFlags:Flags= internal.Flags_EmptyFlags|^^^^^^^^^^^^^^^^^^^^^^^^^|Found:Reflection.this.internal.Flags|Required:Reflection.this.Flags²
||where: Flags is a typeintraitCompilerInterface|Flags² is a typeinclassReflection
expectation
It should compile and be equivalent to the class without a self
The text was updated successfully, but these errors were encountered:
minimized code
Compilation output
expectation
It should compile and be equivalent to the class without a
self
The text was updated successfully, but these errors were encountered: