Skip to content

attempt to index '(string)' with '"gsub"' #106

@Zash

Description

@Zash
local function a(s:string):string
  return (s:lower():gsub("a","b"));
end

should be equivalent to string.gsub(s:lower(), "a", "b") and string.gsub(string.lower(s), "a", "b") but gives a type error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions