We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4479f98 commit a89a8f3Copy full SHA for a89a8f3
1 file changed
tsc/lib/TypeScript/MLIRGen.cpp
@@ -4817,8 +4817,9 @@ class MLIRGenImpl
4817
}
4818
else if (classInfo->hasConstructor)
4819
{
4820
- // TODO: check if you are not creating usless code when VTABLE is not in static class
4821
- theModule.emitWarning("class does not have virtual table but has constructor. Class: ") << classInfo->fullName;
+ // TODO: check if you are not creating uswless code when VTABLE is not in static class
+ theModule.emitError("class does not have virtual table but has constructor. Class: ") << classInfo->fullName;
4822
+ return mlir::failure();
4823
4824
4825
0 commit comments