Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.

named(name, action) on monomorphic containers shouldn't require specifying a type #1104

Closed
eskatos opened this issue Sep 11, 2018 · 1 comment

Comments

@eskatos
Copy link
Member

eskatos commented Sep 11, 2018

Expected Behavior

plugins {
    java
}
sourceSets.named("test") {
    println(allJava)
}

Current Behavior

plugins {
    java
}
sourceSets.named("test") {
    println(allJava)    
}
* What went wrong:
Script compilation errors:

  Line 6:     println(allJava)
                      ^ Unresolved reference: allJava

Work around

plugins {
    java
}
sourceSets.named<SourceSet>("test") {
    println(allJava)
}

Your Environment

------------------------------------------------------------
Gradle 4.10
------------------------------------------------------------

Build time:   2018-08-27 18:35:06 UTC
Revision:     ee3751ed9f2034effc1f0072c2b2ee74b5dce67d

Kotlin DSL:   1.0-rc-3
Kotlin:       1.2.60
Groovy:       2.4.15
Ant:          Apache Ant(TM) version 1.9.11 compiled on March 23 2018
JVM:          9.0.4 (Oracle Corporation 9.0.4+11)
OS:           Mac OS X 10.13.4 x86_64
@eskatos
Copy link
Member Author

eskatos commented Sep 18, 2018

Closing as fixed in #1116

@eskatos eskatos closed this as completed Sep 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant