diff options
author | Lukas Rytz <lukas.rytz@gmail.com> | 2014-05-07 17:48:59 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@gmail.com> | 2014-05-07 17:58:48 +0200 |
commit | 840234017bc6b8a3610c208883fd6ad5a563fcd3 (patch) | |
tree | f7bb232b89ace706530b9fe5e934e6d35d1258f4 /test/files | |
parent | 251616a107f4255203e318c9f6342f774d25e66d (diff) | |
download | scala-840234017bc6b8a3610c208883fd6ad5a563fcd3.tar.gz scala-840234017bc6b8a3610c208883fd6ad5a563fcd3.tar.bz2 scala-840234017bc6b8a3610c208883fd6ad5a563fcd3.zip |
SI-7852 for GenBCode
Avoid null checks for "someLiteral".== and SomeModule.==. This has
been implemented in GenICode in #2954.
Introduces a trait to share code between GenICode and GenBCode. This
is just a start, more such refactorings will come quite certainly.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/t7852.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/t7852.scala b/test/files/run/t7852.scala index c93db718fd..1679067510 100644 --- a/test/files/run/t7852.scala +++ b/test/files/run/t7852.scala @@ -12,7 +12,7 @@ object Test extends BytecodeTest { val classNode = loadClassNode("Lean") val methodNode = getMethod(classNode, methodName) val got = countNullChecks(methodNode.instructions) - assert(got == expected, s"expected $expected but got $got comparisons") + assert(got == expected, s"$methodName: expected $expected but got $got comparisons") } test("string", expected = 0) test("module", expected = 0) |