summaryrefslogblamecommitdiff
path: root/test/files/neg/inlineMaxSize.scala
blob: 16dc0d9538ab270eb080ef3395eb8fe33ba34697 (plain) (tree)
1
2
3
4
5
6
7
8







                                                                           
// not a JUnit test because of https://github.com/scala-opt/scala/issues/23
class C {
  @inline final def f = 0
  @inline final def g = f + f + f + f + f + f + f + f + f + f
  @inline final def h = g + g + g + g + g + g + g + g + g + g
  @inline final def i = h + h + h + h + h + h + h + h + h + h
  @inline final def j = i + i
}