aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/DotClass.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/core/DotClass.scala')
-rw-r--r--src/dotty/tools/dotc/core/DotClass.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/DotClass.scala b/src/dotty/tools/dotc/core/DotClass.scala
index fee7d5ac3..f74a4ba81 100644
--- a/src/dotty/tools/dotc/core/DotClass.scala
+++ b/src/dotty/tools/dotc/core/DotClass.scala
@@ -1,7 +1,11 @@
package dotty.tools.dotc.core
+/** Adds standard functionality to a class.
+ * For now: Just the `unsupported` method.
+ */
class DotClass {
+ /** Throws an `UnsupportedOperationException` with the given method name. */
def unsupported(methodName: String): Nothing =
throw new UnsupportedOperationException(s"$getClass.$methodName")