Skip to content

Weird diagnostic from repl #6928

Open
Open
@dabrahams

Description

@dabrahams
dave@DaveA-MBP14 ~ % swift repl
Welcome to Apple Swift version 5.8 (swiftlang-5.8.0.124.2 clang-1403.0.22.11.100).
...
  5> import Foundationm
expression failed to parse:
error: error while processing module import: error: repl.swift:5:8: error: no such module 'Foundationm'
import Foundationm
       ^



fixed expression suggested:
  import Foundationm
  5> 
  1. "Failed to parse" is wrong. It's obviously legal syntax.
  2. It suggests a no-op fixit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions