forked from aniani/vim
patch 9.0.0150: error for using #{ in an expression is a bit confusing
Problem: Error for using #{ in an expression is a bit confusing. Solution: Mention that this error is only given for an expression. Avoid giving the error more than once. (closes #10855)
This commit is contained in:
@@ -2823,6 +2823,8 @@ def Test_expr9_dict()
|
||||
v9.CheckDefAndScriptFailure(["var x = 'a' .. #{a: 1}"], 'E1170:', 1)
|
||||
v9.CheckDefAndScriptFailure(["var x = true ? #{a: 1}"], 'E1170:', 1)
|
||||
|
||||
v9.CheckDefAndScriptFailure(["var x = 'a'", " #{a: 1}"], 'E1170:', 1)
|
||||
|
||||
v9.CheckDefAndScriptFailure(["var x = {a:8}"], 'E1069:', 1)
|
||||
v9.CheckDefAndScriptFailure(["var x = {a : 8}"], 'E1068:', 1)
|
||||
v9.CheckDefAndScriptFailure(["var x = {a :8}"], 'E1068:', 1)
|
||||
|
Reference in New Issue
Block a user