-
Notifications
You must be signed in to change notification settings - Fork 48
File parse failure when selectors of valid form are used #425
Copy link
Copy link
Closed
Description
As previously reported in #354 #360 and ostensibly fixed in #357 (incorporated into release v0.8.0).
Selectors of the form #selector(mySelector(_:)) cause the file to fail to parse (while those of the form #selector(mySelector) succeed).
Tailor Version: 0.10.0
Swift Version: 2.2
Platform (Mac/Linux/Windows/CI): Mac
Installation Method: Homebrew
Steps to Reproduce Issue
Make a new file /tmp/test.swift:
import Cocoa
extension MyTextField: NSTextFieldDelegate {
func control(control: NSControl, textView: NSTextView, doCommandBySelector commandSelector: Selector) -> Bool {
if commandSelector == #selector(insertTab(_:)) {
control.currentEditor()?.complete(nil)
return true
}
return false
}
}$ tailor tailor /tmp/test.swift
Analyzing 1 file:
S
********** /tmp/test.swift **********
test.swift could not be parsed successfully, skipping...
Analyzed 0 files, skipped 1 file, and detected 0 violations (0 errors, 0 warnings).
Expected Behavior
Parses file
Actual Behavior
Fails to parse file
Reactions are currently unavailable