Skip to content

Commit

Permalink
dotty compat: remove () from apply method of Props & TypedProps
Browse files Browse the repository at this point in the history
  • Loading branch information
giabao committed Apr 9, 2020
1 parent f206483 commit 34d57cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion akka-actor/src/main/scala/akka/actor/Props.scala
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ object Props extends AbstractProps {
* Scala API: Returns a Props that has default values except for "creator" which will be a function that creates an instance
* of the supplied type using the default constructor.
*/
def apply[T <: Actor: ClassTag](): Props = apply(defaultDeploy, implicitly[ClassTag[T]].runtimeClass, List.empty)
def apply[T <: Actor: ClassTag]: Props = apply(defaultDeploy, implicitly[ClassTag[T]].runtimeClass, List.empty)

/**
* Scala API: Returns a Props that has default values except for "creator" which will be a function that creates an instance
Expand Down
2 changes: 1 addition & 1 deletion akka-actor/src/main/scala/akka/actor/TypedActor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ object TypedProps {
*
* Scala API
*/
def apply[T <: AnyRef: ClassTag](): TypedProps[T] =
def apply[T <: AnyRef: ClassTag]: TypedProps[T] =
new TypedProps[T](implicitly[ClassTag[T]].runtimeClass.asInstanceOf[Class[T]])

/**
Expand Down

0 comments on commit 34d57cd

Please sign in to comment.