{"published":"2015-03-08 18:35:47","title":"Scala\u306e\u8af8\u30a8\u30e9\u30fc","version":"1.0","provider_url":"https://hatena.blog","description":"type mismatch \u6307\u5b9a\u3057\u305f\u578b\u3068\u53f3\u8fba\u304c\u7570\u306a\u308c\u3070\u30a8\u30e9\u30fc\u3002 scala> val a: Int = \"string\" <console>:7: error: type mismatch; found : String(\"string\") required: Int val a: Int = \"string\" ^ \u7b2c2\u56de Scala\u306e\u57fa\u672c\u7684\u306a\u6587\u6cd5 \u523a\u6fc0\u3092\u6c42\u3081\u308b\u6280\u8853\u8005\u306b\u6367\u3052\u308bScala\u8b1b\u5ea7 - \u7b2c2\u56de Scala\u306e\u57fa\u672c\u7684\u306a\u6587\u6cd5\uff1aITpro illegal start of declaration (\u4e3b\u306b\u30e1\u30bd\u30c3\u30c9\u307e\u308f\u308a\u3067)\u5ba3\u8a00\u3092\u30df\u30b9\u308b\u3068\u30a8\u30e9\u30fc\u3002 scala> def add(x: Int, y:\u2026","blog_url":"https://www.shigemk2.com/","type":"rich","width":"100%","image_url":null,"categories":["Scala"],"url":"https://www.shigemk2.com/entry/scalaerror","height":"190","author_url":"https://blog.hatena.ne.jp/shigemk2/","blog_title":"by shigemk2","author_name":"shigemk2","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2Fscalaerror\" title=\"Scala\u306e\u8af8\u30a8\u30e9\u30fc - by shigemk2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}