Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOSED] TC2: tests2/fixme_take-put-return-fail.cdsl2 #122

Closed
zilinc opened this issue Dec 1, 2017 · 3 comments
Closed

[CLOSED] TC2: tests2/fixme_take-put-return-fail.cdsl2 #122

zilinc opened this issue Dec 1, 2017 · 3 comments

Comments

@zilinc
Copy link

zilinc commented Dec 1, 2017

Issue by che283
Fri Sep 5 13:56:03 2014
Originally opened as https://github.csiro.au/ts-filesystems/Cogent/issues/17


NotASubtypeAlts (RT (TVariant (fromList [("Fail",RT (TTuple [RT (TCon "U32" []),RT (TRecord [("a3",RT (TTake [] (RT (TRecord [("a2",RT (TCon "U32" []))])))),("b",RT (TTake [] (RT (TRecord [("a1",RT (TCon "U32" []))]))))])])),("Success",RT (TRecord [("a3",RT (TTake [] (RT (TRecord [("a2",RT (TCon "U32" []))])))),("b",RT (TTake [] (RT (TRecord [("a1",RT (TCon "U32" []))]))))]))]))) (RT (TVariant (fromList [("Fail",RT (TTuple [RT (TCon "U32" []),RT (TTake [] (RT (TRecord [("a3",RT (TCon "T2" [])),("b",RT (TCon "T1" []))])))])),("Success",RT (TTake [] (RT (TRecord [("a3",RT (TCon "T2" [])),("b",RT (TCon "T1" []))]))))])))
  InDefinition "pass_take-put-return-fail.cdsl2.tmp" (line 9, column 1) (FunDef "xxx" (PT [] (LocType 
@zilinc
Copy link
Author

zilinc commented Dec 1, 2017

Comment by che283
Fri Sep 5 14:00:06 2014


May be a duplicate of #13

@zilinc
Copy link
Author

zilinc commented Dec 1, 2017

Comment by che283
Fri Sep 5 14:11:48 2014


Also, in TC1, type synonyms are unfolded in the AST, which is unwanted while converting to cdsl2. As a consequence, in the auto-generated CDSL2 code, user may need to manually fold them back....

@zilinc
Copy link
Author

zilinc commented Dec 1, 2017

Comment by loconnor
Fri Sep 12 16:54:54 2014


Duplicate of #11

@zilinc zilinc closed this as completed Dec 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant