summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/T1914.stdout
diff options
context:
space:
mode:
authorRyan Scott <ryan.gl.scott@gmail.com>2022-01-26 06:59:51 -0500
committerRyan Scott <ryan.gl.scott@gmail.com>2022-01-26 06:59:53 -0500
commit0af31d8ed4157f06c0f836c333897e89f1b2890a (patch)
treebcd99d9ecd4fc50313e636e62b0df5314c4247f5 /testsuite/tests/ghci/scripts/T1914.stdout
parentaa50e118b201ae4ac2714afb998d430c9a4a9caa (diff)
downloadhaskell-wip/T20999.tar.gz
Expand type synonyms in markNominalwip/T20999
`markNominal` is repsonsible for setting the roles of type variables that appear underneath an `AppTy` to be nominal. However, `markNominal` previously did not expand type synonyms, so in a data type like this: ```hs data M f a = MkM (f (T a)) type T a = Int ``` The `a` in `M f a` would be marked nominal, even though `T a` would simply expand to `Int`. The fix is simple: call `coreView` as appropriate in `markNominal`. This is much like the fix for #14101, but in a different spot. Fixes #20999.
Diffstat (limited to 'testsuite/tests/ghci/scripts/T1914.stdout')
0 files changed, 0 insertions, 0 deletions