blob: dac49f7d71c6d2055f45e5e2384f05d05bff2023 (
plain) (
tree)
|
|
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import spack.pkg.builtin.mock.multimethod_diamond_parent as mp
import spack.pkg.builtin.mock.multimethod_inheritor as mi
from spack.package import *
class MultimethodDiamond(mi.MultimethodInheritor, mp.MultimethodDiamondParent):
"""This package is designed for use with Spack's multimethod test.
It has a bunch of test cases for the @when decorator that the
test uses.
"""
@when("@4.0")
def diamond_inheritance(self):
return "subclass"
|