Minor, add assertion message to CodegenContext
This commit is contained in:
@@ -83,7 +83,7 @@ public abstract class CodegenContext<T extends DeclarationDescriptor> {
|
|||||||
@NotNull
|
@NotNull
|
||||||
public final ClassDescriptor getThisDescriptor() {
|
public final ClassDescriptor getThisDescriptor() {
|
||||||
if (thisDescriptor == null) {
|
if (thisDescriptor == null) {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException("Context doesn't have a \"this\": " + this);
|
||||||
}
|
}
|
||||||
return thisDescriptor;
|
return thisDescriptor;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user