[ error ] Fix error message for %defaulthint on a local function

This commit is contained in:
Steve Dunham 2023-11-23 14:30:05 -08:00
parent b65064a913
commit 1f54d68e86

View File

@ -49,7 +49,9 @@ processFnOpt fc _ ndef (Hint d)
addLocalHint ndef
processFnOpt fc True ndef (GlobalHint a)
= addGlobalHint ndef a
processFnOpt fc _ ndef (GlobalHint a)
processFnOpt fc _ ndef (GlobalHint True)
= throw (GenericMsg fc "%defaulthint is not valid in local definitions")
processFnOpt fc _ ndef (GlobalHint False)
= throw (GenericMsg fc "%globalhint is not valid in local definitions")
processFnOpt fc _ ndef ExternFn
= setFlag fc ndef Inline -- if externally defined, inline when compiling