HairyFotr / linter

Static Analysis Compiler Plugin for Scala
Apache License 2.0
268 stars 34 forks source link

UndesirableTypeInference false positive? #56

Open benblack86 opened 7 years ago

benblack86 commented 7 years ago

For example, the below cause the error "Inferred type Map[String,Any]. (This might not be what you've intended)". Since the method is defined as returning Map[String, Any] I would think this is acceptable code.

val exifMap = parseExif()
def parseExif(): Map[String, Any] = {}