Skip to content

Instantly share code, notes, and snippets.

@iitalics
Created December 6, 2019 18:14
Show Gist options
  • Save iitalics/6ca45b39b8d3c422588573ea3b56c3fa to your computer and use it in GitHub Desktop.
Save iitalics/6ca45b39b8d3c422588573ea3b56c3fa to your computer and use it in GitHub Desktop.
object Sad {
case class TArray(required: Boolean = false)
case class A(t: TArray, n: Int)
class B {
def a: A = a.copy(t = TArray())
def t: TArray = a.t
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment