Created
December 12, 2021 05:00
-
-
Save bbarker/4d505822a988136aaf57ec99d829f15d to your computer and use it in GitHub Desktop.
Scala won't even let us try it (good!)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def exSetAllBeansTo(beanList: List[ScalaBean[?]], initBean: ScalaBean[?]): Unit = | |
beanList.foreach{bean => | |
bean.setTheA(initBean.getTheA) | |
// ❌ Found: initBean.A | |
// Required: bean.A | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment