Files
Pierre-Marie de Rodat a39fb5930a DSL: rename *Integer types to *Int
TN: R904-024
2018-09-06 17:35:16 +02:00

22 lines
382 B
Python

from __future__ import absolute_import, division, print_function
from langkit.diagnostics import DiagnosticError
from langkit.dsl import ASTNode, Int, Struct, UserField
class FooNode(ASTNode):
pass
class StructA(Struct):
a = UserField(type=Int)
try:
class StructB(StructA):
b = UserField(type=Int)
except DiagnosticError:
pass
print('')
print('Done')