fdiaz/SwiftInspector

Type conformance command does not print conforming type when conformance is in extension

bachand opened this issue · 0 comments

Consider this Swift code:

extension MyRoute: Route {}

If you run Swift Inspector on this file you get the following output.

./swiftinspector type-conformance --type-names Route --path /Users/michael_bachand/Desktop/MyRoute.swift
# /Users/michael_bachand/Desktop/MyRoute.swift Route true

I would expect the following output.

/Users/michael_bachand/Desktop/MyRoute.swift Route true MyRoute