From b575fafe38cc1a888992608252f5f81ea8f8d25c Mon Sep 17 00:00:00 2001 From: Robin Cox Date: Mon, 26 Oct 2020 17:22:27 +0000 Subject: [PATCH 1/2] Add VS Code to gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 51791ccbc48..3bb56edddb3 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ output/ .DS_STORE .idea_modules .idea +.vscode/ out/ /.bloop/ /.metals/ From 60e04197d40811d7e4a49e519069e842a66f54de Mon Sep 17 00:00:00 2001 From: Robin Cox Date: Mon, 26 Oct 2020 17:36:07 +0000 Subject: [PATCH 2/2] Remove constraint for parameter count --- scalalib/src/Lib.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scalalib/src/Lib.scala b/scalalib/src/Lib.scala index 1d3a1191d7b..5017da051aa 100644 --- a/scalalib/src/Lib.scala +++ b/scalalib/src/Lib.scala @@ -133,7 +133,7 @@ object Lib{ else listClassFiles(base).flatMap { path => val cls = cl.loadClass(path.stripSuffix(".class").replace('/', '.')) val publicConstructorCount = - cls.getConstructors.count(c => c.getParameterCount == 0 && Modifier.isPublic(c.getModifiers)) + cls.getConstructors.count(c => Modifier.isPublic(c.getModifiers)) if (Modifier.isAbstract(cls.getModifiers) || cls.isInterface || publicConstructorCount > 1) { None