diff options
author | nickysn <nickysn@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2021-03-01 13:21:24 +0000 |
---|---|---|
committer | nickysn <nickysn@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2021-03-01 13:21:24 +0000 |
commit | efc9f396e6322803ca30817ffbb7efa47f056254 (patch) | |
tree | 6b133633c9766e3ae8e62d8a5ac988637e662e23 /compiler/nset.pas | |
parent | 7970081cf98f70ce91af964068a6b32f062d9b8f (diff) | |
parent | e7fde3b46193c6a3865103c7a7a82e600f787782 (diff) | |
download | fpc-efc9f396e6322803ca30817ffbb7efa47f056254.tar.gz |
* synchronized with trunk
git-svn-id: https://svn.freepascal.org/svn/fpc/branches/wasm@48846 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/nset.pas')
-rw-r--r-- | compiler/nset.pas | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/nset.pas b/compiler/nset.pas index 3f38ac8a5d..afb3362b27 100644 --- a/compiler/nset.pas +++ b/compiler/nset.pas @@ -250,6 +250,7 @@ implementation begin result:=nil; + resultdef:=pasbool1type; typecheckpass(right); set_varstate(right,vs_read,[vsf_must_be_valid]); @@ -272,6 +273,13 @@ implementation if not assigned(left.resultdef) then internalerror(20021126); + { avoid any problems with type parameters later on } + if is_typeparam(left.resultdef) or is_typeparam(right.resultdef) then + begin + resultdef:=cundefinedtype; + exit; + end; + t:=self; if isbinaryoverloaded(t,[]) then begin |