Parser tests: move the contract description blocks tests to a separate folder and add a test for property accessors' contracts

This commit is contained in:
Arsen Nagdalian
2020-07-22 04:39:04 +03:00
parent 66f7250380
commit 86e07cd626
9 changed files with 377 additions and 15 deletions
@@ -0,0 +1,3 @@
fun foo(s: String?) contract [returns() implies (s != null)] {
s ?: throw NullArgumentException()
}