From 8daafcc2e4bf7b2dfb66d7a3b7ac60c86b2d926c Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 9 Jan 2018 10:50:44 -0800 Subject: bruteforce implementation of witness table resolution for associated (#358) --- source/slang/syntax-base-defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/syntax-base-defs.h') diff --git a/source/slang/syntax-base-defs.h b/source/slang/syntax-base-defs.h index 1853125a8..de8b294d8 100644 --- a/source/slang/syntax-base-defs.h +++ b/source/slang/syntax-base-defs.h @@ -180,7 +180,6 @@ END_SYNTAX_CLASS() SYNTAX_CLASS(ThisTypeSubstitution, Substitutions) // The actual type that provides the lookup scope for an associated type SYNTAX_FIELD(RefPtr, sourceType) - RAW( // Apply a set of substitutions to the bindings in this substitution virtual RefPtr SubstituteImpl(Substitutions* subst, int* ioDiff) override; @@ -193,6 +192,7 @@ SYNTAX_CLASS(ThisTypeSubstitution, Substitutions) } virtual int GetHashCode() const override { + SLANG_ASSERT(sourceType); return sourceType->GetHashCode(); } ) -- cgit v1.2.3