diff options
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/mill/define/Module.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/mill/define/Module.scala b/core/src/mill/define/Module.scala index 6abcc75a..3f91b524 100644 --- a/core/src/mill/define/Module.scala +++ b/core/src/mill/define/Module.scala @@ -64,9 +64,9 @@ object Module{ !m.getName.contains('$') && m.getParameterCount == 0 && (m.getModifiers & Modifier.STATIC) == 0 && + (m.getModifiers & Modifier.ABSTRACT) == 0 && runtimeCls.isAssignableFrom(m.getReturnType) } yield m.invoke(outer).asInstanceOf[T] - } def reflectNames[T: ClassTag] = { val runtimeCls = implicitly[ClassTag[T]].runtimeClass |