Skip to content

Commit

Permalink
Merge branch 'mr/pmderodat/master' into 'master'
Browse files Browse the repository at this point in the history
SubtypeDecl.get_type: add missing default value for "origin"

See merge request eng/libadalang/libadalang!1638
  • Loading branch information
pmderodat committed May 13, 2024
2 parents 8cb2a4a + 772b6ce commit f05b295
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ada/ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -10141,7 +10141,10 @@ class SubtypeDecl(BaseSubtypeDecl):
add_to_env(Entity.synthetic_object_decl_env_assoc)
)

@langkit_property(return_type=T.BaseTypeDecl.entity, dynamic_vars=[origin])
@langkit_property(
return_type=T.BaseTypeDecl.entity,
dynamic_vars=[default_origin()],
)
def get_type():
return Entity.subtype.designated_type.match(
lambda st=T.SubtypeDecl: st.get_type,
Expand Down

0 comments on commit f05b295

Please sign in to comment.