mirror of
https://github.com/github/codeql.git
synced 2026-05-03 20:58:03 +02:00
Codegen: parse synth property modifier
This commit is contained in:
@@ -455,6 +455,17 @@ def test_ipa_class_hierarchy():
|
||||
}
|
||||
|
||||
|
||||
def test_synthesized_property():
|
||||
@load
|
||||
class data:
|
||||
class A:
|
||||
x: defs.int | defs.synth
|
||||
|
||||
assert data.classes["A"].properties == [
|
||||
schema.SingleProperty("x", "int", synth=True)
|
||||
]
|
||||
|
||||
|
||||
def test_class_docstring():
|
||||
@load
|
||||
class data:
|
||||
|
||||
Reference in New Issue
Block a user