Added assertion for 'inherited' visibility in codegen.

This commit is contained in:
Evgeny Gerashchenko
2012-06-16 18:01:27 +04:00
parent 7465e260b6
commit 49004aa451
@@ -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;
}
}