diff options
| author | Yong He <yonghe@outlook.com> | 2018-01-14 18:20:46 -0500 |
|---|---|---|
| committer | Yong He <yonghe@outlook.com> | 2018-01-14 18:20:46 -0500 |
| commit | 436f0e7198735d118daa956d0a3bb698571c3cd7 (patch) | |
| tree | 0e2ec9e602c8324595f1ef69ccbd765da8d9b3cb /source | |
| parent | ae8ef43d2c807da536331eaeec022e35aa4299c1 (diff) | |
temporary workaround to fix test case failures.
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/check.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source/slang/check.cpp b/source/slang/check.cpp index 6b8331060..3103a7908 100644 --- a/source/slang/check.cpp +++ b/source/slang/check.cpp @@ -1076,8 +1076,12 @@ namespace Slang { // The user is asking for us to actually perform the conversion, // so we need to generate an appropriate expression here. - - throw "foo bar baz"; + + // YONGH: I am confused why we are not hitting this case before + //throw "foo bar baz"; + // YONGH: temporary work around, may need to create the actual + // invocation expr to the constructor call + *outToExpr = fromExpr; } return true; @@ -1848,7 +1852,7 @@ namespace Slang if (doesMemberSatisfyRequirement(member.declRef, requiredMemberDeclRef, requirementWitness)) return member.declRef.getDecl(); } - + // No suitable member found, although there were candidates. // // TODO: Eventually we might want something akin to the current |
