ãã®ãã¼ã¸ã¿ã¤ãã«ã¯ãæ£ç¢ºã«ã¯ãdefã§å®ç¾©ãããé¢æ°ã£ã½ããã® != ãã¡ã¼ã¹ãã¯ã©ã¹ãªãã¸ã§ã¯ãã§ããã¹ããªã®ã§ãããããã ã¨ã¿ã¤ãã«ã ãè¦ãã¨ãã«ããããããªãã ããã¨èãããã®ãããªã¿ã¤ãã«ã«ãã¾ããã ã¾ãçµè«ã ãå ã«æ¸ãã¨ãScalaã§ã¯ãã¡ã½ããããã³ãã®ä»ã®defã§å®ç¾©ããããã®ã¯ãã¡ã¼ã¹ãã¯ã©ã¹ãªãã¸ã§ã¯ãã§ã¯ããã¾ãããããã¯ã次ã®ãããªç°¡åãªã³ã¼ãã§ç¢ºããããã¾ãã scala> object Foo { | def foo(x: Int) { println("foo" + x) } | } defined module Foo <scala> val fooMethod = Foo.foo // fooMethodå¤æ°ãfooã¡ã½ããã«æç¸ããã <console>:6: error: missing arguments for method foo in obj
{{#tags}}- {{label}}
{{/tags}}