mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-24 00:12:22 +03:00
Fixes #322
Just needed to recurse through the parens and infix cases in `appTys`.
This commit is contained in:
parent
b875edae1a
commit
cf979723b7
@ -140,8 +140,9 @@ appTys expr ts tGoal =
|
||||
P.ETyped {} -> mono
|
||||
P.ETypeVal {} -> mono
|
||||
P.EFun {} -> mono
|
||||
P.EParens {} -> tcPanic "appTys" [ "Unexpected EParens" ]
|
||||
P.EInfix {} -> tcPanic "appTys" [ "Unexpected EInfix" ]
|
||||
|
||||
P.EParens e -> appTys e ts tGoal
|
||||
P.EInfix a op _ b -> appTys (P.EVar (thing op) `P.EApp` a `P.EApp` b) ts tGoal
|
||||
|
||||
where mono = do e' <- checkE expr tGoal
|
||||
(ie,t) <- instantiateWith e' (Forall [] [] tGoal) ts
|
||||
|
1
tests/issues/issue322.icry
Normal file
1
tests/issues/issue322.icry
Normal file
@ -0,0 +1 @@
|
||||
:t (split`{a=[3]})`{3}
|
4
tests/issues/issue322.icry.stdout
Normal file
4
tests/issues/issue322.icry.stdout
Normal file
@ -0,0 +1,4 @@
|
||||
Loading module Cryptol
|
||||
|
||||
[error] at <interactive>:1:2--1:7:
|
||||
Named and positional type applications may not be mixed.
|
Loading…
Reference in New Issue
Block a user