(import) and (using) for pure-kiss classes

This commit is contained in:
2022-10-06 00:49:05 +00:00
parent fea27ed4a0
commit 0c6f044e42
7 changed files with 96 additions and 18 deletions

View File

@@ -693,4 +693,15 @@ From:[(assert false (+ \"false \" \"should \" \"have \" \"been \" \"true\"))]" m
(function _testWhenLetGuards []
// Guards should be allowed in whenLet patterns
(whenLet [(when true 5) 5]
(Assert.pass)))
(Assert.pass)))
(function _testImportAndUsingInBuildMacro []
(assertThrowsAtCompileTime (import pack.Type))
(assertThrowsAtCompileTime (importAs pack.Type Alias))
(assertThrowsAtCompileTime (importAll pack))
(assertThrowsAtCompileTime (using pack.Type))
(Assert.pass))
(function _testPureKissClasses []
(PureKissClass.test)
(Assert.pass))