Added assertion for 'inherited' visibility in codegen.
This commit is contained in:
@@ -962,6 +962,9 @@ public class JetTypeMapper {
|
||||
return ACC_PUBLIC;
|
||||
}
|
||||
else {
|
||||
if (p.getVisibility() == Visibilities.INHERITED) {
|
||||
throw new IllegalStateException("'inherited' visibility is unresolved on code generation stage");
|
||||
}
|
||||
return defaultFlags;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user