Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizhangNV committed Jan 21, 2025
1 parent 0027237 commit 9d58bd7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/slang/slang-check-overload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2167,15 +2167,16 @@ void SemanticsVisitor::AddTypeOverloadCandidates(Type* type, OverloadResolveCont
// from a value of the same type. There is no need in Slang for
// "copy constructors" but the core module currently has to define
// some just to make code that does, e.g., `float(1.0f)` work.)

LookupOptions options =
LookupOptions(uint8_t(LookupOptions::IgnoreInheritance) | uint8_t(LookupOptions::NoDeref));
LookupResult initializers = lookUpMember(
m_astBuilder,
this,
getName("$init"),
type,
context.sourceScope,
LookupMask::Default,
LookupOptions::IgnoreInheritance);
options);

AddOverloadCandidates(initializers, context);
}
Expand Down

0 comments on commit 9d58bd7

Please sign in to comment.