diff options
| author | Yong He <yonghe@outlook.com> | 2017-12-27 20:17:36 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-27 20:17:36 -0500 |
| commit | e370fe2984e7e260dc2d78d67b087e542d0102b0 (patch) | |
| tree | dd441836025e802f79e74646f8f280c7515cbaec /source/slang/syntax.cpp | |
| parent | 69242398be1ba76898c0d6541eec3b7ca0ec1ab4 (diff) | |
| parent | d55b56bc804f25d8390f1dc6b09ff9116ffcaf29 (diff) | |
Merge pull request #335 from csyonghe/master
Support nested generic types (e.g. L<T<S>>)
Diffstat (limited to 'source/slang/syntax.cpp')
| -rw-r--r-- | source/slang/syntax.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/syntax.cpp b/source/slang/syntax.cpp index 070362ddf..9ca2dc827 100644 --- a/source/slang/syntax.cpp +++ b/source/slang/syntax.cpp @@ -1827,7 +1827,7 @@ void Type::accept(IValVisitor* visitor, void* extra) if(!otherProxy) return false; - return this->inst == otherProxy->inst; + return this->inst.usedValue == otherProxy->inst.usedValue; } String IRProxyVal::ToString() @@ -1837,7 +1837,7 @@ void Type::accept(IValVisitor* visitor, void* extra) int IRProxyVal::GetHashCode() { - auto hash = Slang::GetHashCode(inst); + auto hash = Slang::GetHashCode(inst.usedValue); return hash; } |
