Movatterモバイル変換


[0]ホーム

URL:


Scala 3
3.7.4
LearnInstallPlaygroundFind A LibraryCommunityBlog
Scala 3
LearnInstallPlaygroundFind A LibraryCommunityBlog
DocsAPI
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL
Scala 3/scala/scala.annotation/showAsInfix

showAsInfix

scala.annotation.showAsInfix
classshowAsInfix(enabled:Boolean = ...) extendsStaticAnnotation

This annotation configures how Scala prints two-parameter generic types.

By default, types with symbolic names are printed infix; while types without them are printed using the regular generic type syntax.

Example of usage:

scala> class Map[T, U]defined class Mapscala> def foo: Int Map Int = ???foo: Map[Int,Int]scala> @showAsInfix class Map[T, U]defined class Mapscala> def foo: Int Map Int = ???foo: Int Map Int

Value parameters

enabled

whether to show this type as an infix type operator.

Attributes

Source
showAsInfix.scala
Graph
Supertypes
classObject
traitMatchable
classAny
In this article
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL

[8]ページ先頭

©2009-2025 Movatter.jp