Skip to content
This repository was archived by the owner on Feb 3, 2021. It is now read-only.

Commit 5933753

Browse files
committed
stringify types as (Int) instead of Int()
1 parent 20b98d5 commit 5933753

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Pugs/src/Pugs/AST/Internals.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,7 @@ instance Value VStr where
11661166
fromVal (VList l) = return . unwords =<< mapM fromVal l
11671167
fromVal v@(PerlSV _) = fromVal' v
11681168
fromVal VUndef = return ""
1169-
fromVal (VType t) = return (showType t ++ "()")
1169+
fromVal (VType t) = return ("(" ++ showType t ++ ")")
11701170
fromVal v = do
11711171
vt <- evalValType v
11721172
case showType vt of

t/spectest.data

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ integration/lexicals-and-attributes.t
1818
integration/method-calls-and-instantiation.t
1919
integration/no-indirect-new.t
2020
integration/packages.t
21+
integration/pair-in-array.t
2122
integration/passing-pair-class-to-sub.t
2223
integration/real-strings.t
2324
integration/role-composition-vs-attribute.t

0 commit comments

Comments
 (0)