Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7c6da4c

Browse files
chore: extract ScalaReflectionException to be in the correct folder
1 parent 6abbb55 commit 7c6da4c

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package scala
2+
3+
import scala.language.`2.13`
4+
5+
/** An exception that indicates an error during Scala reflection */
6+
case class ScalaReflectionException(msg: String) extends Exception(msg)
7+
8+
object ScalaReflectionException extends scala.runtime.AbstractFunction1[String, ScalaReflectionException]:
9+
override def toString: String = "ScalaReflectionException"

‎library/src/scala/reflect/package.scala‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,3 @@ package object reflect {
7373
// todo. once we have implicit macros for tag generation, we can remove this anchor
7474
private[scala] def materializeClassTag[T](): ClassTag[T] = macro ???
7575
}
76-
77-
/** An exception that indicates an error during Scala reflection */
78-
case class ScalaReflectionException(msg: String) extends Exception(msg)
79-
80-
object ScalaReflectionException extends scala.runtime.AbstractFunction1[String, ScalaReflectionException]:
81-
override def toString: String = "ScalaReflectionException"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /