-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #1648 forbid implicit trait construction, add explicit `makeTrait…
…` and `fromTrait` methods (#2029) * Fix #1648 forbid implicit trait construction, add explicit `makeTrait` and `fromTrait` methods * Removed `AnyConstructor`, since it's now the same as `ClassConstructor`
- Loading branch information
Showing
38 changed files
with
385 additions
and
376 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...-api/src/main/scala-2/izumi/distage/model/definition/dsl/AbstractBindingDefDSLMacro.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package izumi.distage.model.definition.dsl | ||
|
||
import izumi.distage.constructors.macros.AnyConstructorMacro | ||
import izumi.distage.constructors.macros.MakeMacro | ||
|
||
import scala.language.experimental.macros | ||
|
||
trait AbstractBindingDefDSLMacro[BindDSL[_]] { | ||
final protected[this] def make[T]: BindDSL[T] = macro AnyConstructorMacro.make[BindDSL, T] | ||
final protected[this] def make[T]: BindDSL[T] = macro MakeMacro.make[BindDSL, T] | ||
} |
Oops, something went wrong.