diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2014-01-15 00:01:17 -0800 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-01-15 00:01:17 -0800 |
commit | b3ad7534fb99df9ea0a64e4ba929311c72175709 (patch) | |
tree | 0b498520a8337089421bcd63df979184e94df18c /test/files | |
parent | d5801b9eee7df49894c05dea430a56190cae2112 (diff) | |
parent | 9df2dcc58439cf75420da68d4e6d9bb5504aabb4 (diff) | |
download | scala-b3ad7534fb99df9ea0a64e4ba929311c72175709.tar.gz scala-b3ad7534fb99df9ea0a64e4ba929311c72175709.tar.bz2 scala-b3ad7534fb99df9ea0a64e4ba929311c72175709.zip |
Merge pull request #3364 from retronym/ticket/8152
[nomaster] Backport variance validator performance fix
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/pos/t8152-performance.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/pos/t8152-performance.scala b/test/files/pos/t8152-performance.scala new file mode 100644 index 0000000000..b6d2ecd823 --- /dev/null +++ b/test/files/pos/t8152-performance.scala @@ -0,0 +1,13 @@ +class HListBench { + + class A[H, T] + + type B[H, T] = A[H, T] + + // was okay + type T1 = A[Int, A[Int, A[Int, A[Int, A[Int, A[Int, A[Int, A[Int, A[Int, A[Int, A[Int, A[Int, A[Int, A[Int, A[Int, A[Int, A[Int, A[Int, A[Int, A[Int, A[Int, A[Int, A[Int, A[Int, A[Int, A[Int, A[Int, A[Int, Nothing]]]]]]]]]]]]]]]]]]]]]]]]]]]] + + // Took over a minute to validate variance in 2.10.3! + type T2 = B[Int, B[Int, B[Int, B[Int, B[Int, B[Int, B[Int, B[Int, B[Int, B[Int, B[Int, B[Int, B[Int, B[Int, B[Int, B[Int, B[Int, B[Int, B[Int, B[Int, B[Int, B[Int, B[Int, B[Int, B[Int, B[Int, B[Int, B[Int, Nothing]]]]]]]]]]]]]]]]]]]]]]]]]]]] + +}
\ No newline at end of file |