// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
// AUTOUPDATE

package ExplorerTest api;

interface HasValueParam(T:! type, V:! T) {
  fn Go[self: Self]() -> T;
}

impl () as HasValueParam(i32, 5) {
  fn Go[self: Self]() -> i32 { return 42; }
}

fn Main() -> i32 {
  return ().(HasValueParam(i32, 5).Go)();
}

// CHECK:STDOUT: result: 42
