Skip to content

Commit

Permalink
Clarify comment
Browse files Browse the repository at this point in the history
Signed-off-by: Danila Fedorin <[email protected]>
  • Loading branch information
DanilaFe committed Feb 10, 2025
1 parent 3b4192a commit 14402aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/lib/types/Type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,8 @@ static bool const& isDefaultInitializableQuery(Context* context, const Type* t)
}

// note: production disallows default-init for generic fields like `var x;`,
// but why? Seems like this is an implementation detail. Allow it in Dyno.
// even if they are instantiated with a type that is default-initializable.
// But why? Seems like this is an implementation detail. Allow it in Dyno.

result = resolution::tryResolveZeroArgInit(context, ast, t) != nullptr;
}
Expand Down

0 comments on commit 14402aa

Please sign in to comment.