Skip to content

Instantly share code, notes, and snippets.

@harrah
Created June 15, 2010 21:36
Show Gist options
  • Save harrah/439771 to your computer and use it in GitHub Desktop.
Save harrah/439771 to your computer and use it in GitHub Desktop.
Index: src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala
===================================================================
--- src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala (revision 22171)
+++ src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala (working copy)
@@ -890,7 +890,7 @@
&& !m.hasFlag(Flags.CASE | Flags.PRIVATE | Flags.PROTECTED | Flags.DEFERRED | Flags.SPECIALIZED)
&& !m.isConstructor
&& !m.isStaticMember
- && !(m.owner == definitions.AnyClass)
+ && !(m.owner == definitions.AnyClass || definitions.AbstractFunctionClass.contains(m.owner))
&& !module.isSubClass(module.companionClass)
&& !conflictsIn(definitions.ObjectClass, m.name)
&& !conflictsInCommonParent(m.name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment