8000 Passed literal anonymous function to function is not checked. · Issue #98 · bombsimon/wsl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Passed literal anonymous function to function is not checked. #98
Closed
@hansbogert

Description

@hansbogert

Is it by design, or in anyway intended that the following cuddled statements inside the anonymous function are not hit by wsl ?

package main

import "fmt"

func main() {
        fmt.Println(func () error {
                foo:="bar"
                fmt.Println("Just a statement")
                if foo == "bar" {
                        return fmt.Errorf("bar")
                }
                return nil
        }())
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0