summaryrefslogtreecommitdiffstats
path: root/tests/bugs186/lambdaBeans/Application.java
blob: f98a49a5ecd98f48c870c5b70761fad0022e9b04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
public class Application {

    @Foo
    Runnable fromInnerClass() {
      return new Runnable() {
        @Override
        public void run() {
        }
      };
    }

    @Foo
    Runnable fromLambdaExpression() {
      return () -> { };
    }
}