Update compile-time resolution and tests
This commit is contained in:
1 parent
8f60a84e3b
commit
523b9d338b
46 files changed
+3771
-967
No files matched your search
@@ -65,7 +65,7 @@ class CompileTimeResolutionSpecTest {
|
||||
val report = dryRun(
|
||||
"""
|
||||
val G = 10
|
||||
fun f(x) = x + G
|
||||
fun f(x=0) = x + G
|
||||
"""
|
||||
)
|
||||
assertTrue(report.errors.isEmpty())
|
||||
@@ -162,7 +162,7 @@ class CompileTimeResolutionSpecTest {
|
||||
fun parameterShadowingAllowed() = runTest {
|
||||
val report = dryRun(
|
||||
"""
|
||||
fun f(a) {
|
||||
fun f(a=0) {
|
||||
var a = a * 10
|
||||
a
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user