aboutsummaryrefslogblamecommitdiff
path: root/src/dotty/tools/dotc/util/DotClass.scala
blob: cdb697a458d02ced17d392b8c55ca4a0aa907f79 (plain) (tree)
1
2
3
4
5
6
7
8
                             
 


                                           

                
                                                                              


                                                                     
 
package dotty.tools.dotc.util

/** 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")

}